﻿@model FilmBookingTicket.Models.Film

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_AdminLayout.cshtml";
}

<h2>Sửa thông tin phim</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
 <table class="table striped bordered hovered" style="margin :0px 0px 0px 40px">
        <tr>
            <td style="padding: 0px 10px 0px 20px">
                <div>
                    @Html.LabelFor(model => model.Name)
                </div>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Name)
                    @Html.ValidationMessageFor(model => model.Name)
                </div>
            </td>
            <td style="padding: 0px 20px 0px 10px">
                <div>
                    @Html.LabelFor(model => model.Length)
                </div>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Length)
                    @Html.ValidationMessageFor(model => model.Length)
                </div>
            </td>
        </tr>
        <tr>
            <td style="padding: 0px 10px 0px 20px">
                <div>
                    @Html.LabelFor(model => model.Nation)
                </div>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Nation)
                    @Html.ValidationMessageFor(model => model.Nation)
                </div>
            </td>
            <td style="padding: 0px 20px 0px 10px">
                <div>
                    @Html.LabelFor(model => model.Director)
                </div>
                <div class="input-control text">
                    @Html.EditorFor(model => model.Director)
                    @Html.ValidationMessageFor(model => model.Director)
                </div>
            </td>
        </tr>
        <tr>
            <td style="padding: 0px 10px 0px 20px">
                <div>
                    @Html.LabelFor(model => model.AgeLimit)
                </div>
                <div class="input-control text">
                    @Html.EditorFor(model => model.AgeLimit)
                    @Html.ValidationMessageFor(model => model.AgeLimit)
                </div>
            </td>
            <td style="padding: 0px 10px 0px 20px">
                <div>
                    @Html.LabelFor(model => model.ActorId, "Actor")
                </div>
                <div class="input-control text">
                    @Html.DropDownList("ActorId", String.Empty)
                    @Html.ValidationMessageFor(model => model.ActorId)
                </div>
            </td>

        </tr>
        <tr>
            <td style="padding: 0px 10px 0px 20px">
                <div>
                    @Html.LabelFor(model => model.CategoryId, "Category")
                </div>
                <div class="dropdown-toggle">
                    @Html.DropDownList("CategoryId", String.Empty)
                    @Html.ValidationMessageFor(model => model.CategoryId)
                </div>
            </td>
            <td style="padding: 0px 10px 0px 20px">
                <div>
                    @Html.LabelFor(model => model.FormatId, "Format")
                </div>
                <div class="input-control text">
                    <div>
                        @Html.DropDownList("FormatId", String.Empty)
                        @Html.ValidationMessageFor(model => model.FormatId)
                    </div>
                </div>
            </td>
        </tr>
        <tr>
            <td style="padding: 0px 10px 0px 20px" colspan="2">
                <div>
                    @Html.LabelFor(model => model.Description)
                </div>
                <div>
                    @Html.TextAreaFor(model => model.Description,new { style="width: 350px" })
                    @Html.ValidationMessageFor(model => model.Description)
                </div>
            </td>
        </tr>
        <tr>
            <td style="padding: 0px 10px 0px 20px" colspan="2">
                <div>
                    @Html.LabelFor(model => model.ImageURL)
                </div>
                <div class="input-control text">
                    @Html.EditorFor(model => model.ImageURL)
                    @Html.ValidationMessageFor(model => model.ImageURL)
                </div>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input class="large info" type="submit" value="Save" />
            </td>
        </tr>
     <tr>
         <td>
             <div>
                 @Html.ActionLink("Back to List", "Index")
             </div>
         </td>
     </tr>
    </table>           
  
}


